import request from "@/utils/request";

// 获得门店斗拱配置分页
export function getdgPage(query) {
  return request({
    url: "/store/dg/page",
    method: "get",
    params: query,
  });
}

// 创建门店斗拱配置
export function CreatedgPage(data) {
  return request({
    url: "/store/dg/create",
    method: "post",
    data: data,
  });
}

// 更新门店斗拱配置
export function UpdatedgPage(data) {
  return request({
    url: "/store/dg/update",
    method: "post",
    data: data,
  });
}

// 删除门店斗拱配置
export function DeletedgPage(query) {
  return request({
    url: "/store/dg/delete",
    method: "get",
    params: query,
  });
}

// 获得门店斗拱配置
export function getdgPageInfo(query) {
  return request({
    url: "/store/dg/get",
    method: "get",
    params: query,
  });
}

// 查询所有门店
export function getAllStorelists(data) {
  return request({
    url: "/store/store/all",
    method: "get",
    data: data,
  });
}

// // 导入转账
// export function ImportTransfer(query) {
//   return request({
//     url: "/order/dg-record/transfer/import",
//     method: "post",
//     params: query,
//   });
// }

// 下载转账导入模板
export function downloadTransferTemp() {
  return request({
    url: "/order/dg-record/transfer/temp",
    method: "post",
    responseType: "blob",
  });
}

// 导入转账回执下载
export function impFinishDown(query) {
  return request({
    url: "/order/dg-record/transfer/import/finish/down",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 导入转账查询完成状态
export function impFinish(query) {
  return request({
    url: "/order/dg-record/transfer/import/finish",
    method: "get",
    params: query,
  });
}

// 导入提现回执下载
export function impCashFinishDown(query) {
  return request({
    url: "/order/dg-record/cash/import/finish/down",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 导入提现查询完成状态
export function impCashFinish(query) {
  return request({
    url: "/order/dg-record/cash/import/finish",
    method: "get",
    params: query,
  });
}

// 下载提现导入模板
export function impCashTemp(query) {
  return request({
    url: "/order/dg-record/cash/temp",
    method: "post",
    params: query,
    responseType: "blob",
  });
}

// 导入转账总部回执下载
export function impManagerFinishDown(query) {
  return request({
    url: "/order/dg-record/manager/import/finish/down",
    method: "get",
    params: query,
    responseType: "blob",
  });
}

// 导入转账总部查询完成状态
export function impManagerFinish(query) {
  return request({
    url: "/order/dg-record/manager/import/finish",
    method: "get",
    params: query,
  });
}

// 转账总部模板
export function impManagerTemp(query) {
  return request({
    url: "/order/dg-record/manager/temp",
    method: "post",
    params: query,
    responseType: "blob",
  });
}
